using EFJsonApp.Share.Models;
using Microsoft.EntityFrameworkCore;
using System.Reflection;

var builder = Host.CreateApplicationBuilder(args);

builder.Services.AddDbContext<AppDbContext>(options =>
{
    options.UseNpgsql(builder.Configuration.GetConnectionString("PGCor"), b =>
    {
        b.MigrationsAssembly(Assembly.GetExecutingAssembly().GetName().Name);
        b.MigrationsHistoryTable("__EFMigrationsHistory", "fcj");
    });
});


var host = builder.Build();
host.Run();
